/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm.orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Profesional_SaludDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression rutProf;
	public final StringExpression nombreProf;
	
	public Profesional_SaludDetachedCriteria() {
		super(orm.orm.Profesional_Salud.class, orm.orm.Profesional_SaludCriteria.class);
		rutProf = new IntegerExpression("rutProf", this.getDetachedCriteria());
		nombreProf = new StringExpression("nombreProf", this.getDetachedCriteria());
	}
	
	public Profesional_SaludDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.orm.Profesional_SaludCriteria.class);
		rutProf = new IntegerExpression("rutProf", this.getDetachedCriteria());
		nombreProf = new StringExpression("nombreProf", this.getDetachedCriteria());
	}
	
	public EncuestaDetachedCriteria createEncuestaCriteria() {
		return new EncuestaDetachedCriteria(createCriteria("ORM_Encuesta"));
	}
	
	public Profesional_Salud uniqueProfesional_Salud(PersistentSession session) {
		return (Profesional_Salud) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Profesional_Salud[] listProfesional_Salud(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Profesional_Salud[]) list.toArray(new Profesional_Salud[list.size()]);
	}
}

